From 5d8c81b770838b0249228cbb7fc2d314a4ffd959 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Mon, 19 May 2025 19:58:58 -0400 Subject: [PATCH] use `CMAKE_INSTALL_PREFIX` instead of `--prefix` --- .github/workflows/cmake.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 52f3b80..f9ff127 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -21,7 +21,7 @@ jobs: - name: Build run: | mkdir build - cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON + cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON -DCMAKE_INSTALL_PREFIX=tmp/install cmake --build build - name: Run Test run: ctest --test-dir build -V @@ -36,7 +36,7 @@ jobs: - name: Test Consuming (Windows) if: runner.os = 'Windows' run: | - cmake --install build --prefix tmp/install --config Debug + cmake --install build --config Debug cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install cmake --build test/app/build $Env:PATH = "$PWD\tmp\install\bin;$Env:PATH" @@ -44,7 +44,7 @@ jobs: - name: Test Consuming (Unix) if: runner.os != 'Windows' run: | - cmake --install build --prefix tmp/install + cmake --install build cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install cmake --build test/app/build test/app/build/app @@ -67,7 +67,7 @@ jobs: - name: Build run: | mkdir build - cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON -G'MSYS Makefiles' + cmake -S . -B build -DBUILD_SHARED_LIBS=${{ matrix.shared }} -DUTF8PROC_ENABLE_TESTING=ON -G'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX=tmp/install cmake --build build - name: Run Test run: ctest --test-dir build -V @@ -79,7 +79,7 @@ jobs: path: build/libutf8proc.* - name: Test Consuming run: | - cmake --install build --prefix tmp/install + cmake --install build cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install -G'MSYS Makefiles' cmake --build test/app/build PATH="$(pwd)/tmp/install/bin:$PATH" -- 2.30.2